home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / Jim's CDEFs v1.30 / demo Source ƒ / demoDialog.r < prev    next >
Encoding:
Text File  |  1994-11-06  |  29.8 KB  |  1,144 lines  |  [TEXT/KAHL]

  1. // -----------------------------------------------------------------------------
  2. //    File    : demoDialog.r
  3. //    Date    : August 24, 1994
  4. //    Author    : Jim Stout
  5. //    Purpose    : resource descriptions for demoDialog.c
  6. //
  7. // -----------------------------------------------------------------------------
  8. #define REZ                                    // Think 6 - see jimsCDEF.h
  9. #define SystemSevenOrLater 1
  10.  
  11. #include <Types.r>
  12. #include "jimsCDEF.h"                        // variation codes for the CDEFs
  13.  
  14. include "xDef.rsrc";                        // include the CDEFs
  15. include "demoCICN.rsrc";                    // a bunch of icons
  16.  
  17. #define BLACK    1
  18. #define WANT3D    1
  19.  
  20. resource 'cctb' (0, purgeable) {                // set to 0 to color all controls
  21.     {
  22. #if BLACK
  23.         /* [1] */    cFrameColor, 0, 0, 0
  24.         /* [2] */    cTextColor, 0, 0, 0
  25. #else
  26.         /* [1] */    cFrameColor, 384, 384, 26214
  27.         /* [2] */    cTextColor, 384, 384, 26214 
  28. #endif
  29.         /* [3] */    cBodyColor, 52428,52428,52428,
  30.         /* [4] */    cElevatorColor, 0, 0, 0,
  31.         /* [5] */    cFillPatColor, 384, 384, 26214,
  32.         /* [6] */    cTingeLight, 52428, 52428, 65535
  33.         /* [6] */    cTingeDark, 13107, 13107, 26214
  34.     }
  35. };
  36.  
  37. resource 'cctb' (128, purgeable) {                // TabPanel control colors
  38.     {
  39. #if BLACK
  40.         /* [1] */    cFrameColor, 0, 0, 0
  41.         /* [2] */    cTextColor, 0, 0, 0
  42. #else
  43.         /* [1] */    cFrameColor, 384, 384, 26214
  44.         /* [2] */    cTextColor, 384, 384, 26214 
  45. #endif
  46.     }
  47. };
  48.  
  49. //----------------------------------------------------------------------------
  50. // Main dialog
  51. //----------------------------------------------------------------------------
  52.  
  53. resource 'DLOG' (128, "demoCDEF", purgeable) {
  54.     {46, 15, 340, 493},    movableDBoxProc,    visible,    nogoAway,    0x0,    128,
  55.     "demoCDEF Dialog",
  56. #if SystemSevenOrLater
  57.     centerMainScreen
  58. #endif
  59. };
  60.  
  61. resource 'DITL' (128, "demoCDEF base", purgeable) {
  62.     {
  63.         /* [1] */    {261, 406, 281, 465},        Button        { enabled,    "OK"        },
  64.         /* [2] */    {261, 334, 281, 393},        Button         { enabled,    "Cancel"    },
  65.         /* [3] */    {4, 4, 36, 474},            Control        { enabled,    128            },
  66.         /* [4] */    {261, 40, 281, 99},            Button        { enabled,  "Disable"    }
  67.     }
  68. };
  69.  
  70. resource 'CNTL' (128, "Tab Panel Control", purgeable) {
  71.     {4, 4, 36, 474},                // control rect (keep height to 16*rows!)
  72.     1,                                // initial value = active tab
  73.     visible,
  74.     8,                                // max value (match to titles below)
  75.     244,                            // REAL height of control rect
  76.     16*tabPanel,                    // procID
  77.     0,
  78. //
  79. // Titles for each tab follow
  80. //
  81.     "3D Buttons\nPopUp Menus\nArrows\nDate & Time\nHorizontal Sliders"
  82.     "\nVertical Sliders\nProgress Bars\nPopup Extensions"
  83. };
  84.  
  85. resource 'dctb' (128, purgeable) {
  86.     {
  87. #if WANT3D
  88.         /* [1] */        wContentColor, 52428,52428,52428,        // gray
  89. #else
  90.         /* [1] */        wContentColor, 65535,65535,65535,        // white
  91. #endif
  92.         /* [2] */        wFrameColor, 0, 0, 0,
  93.         /* [3] */        wTextColor, 0, 0, 0,
  94.         /* [4] */        wHiliteColor, 0, 0, 0,
  95.         /* [5] */        wTitleBarColor, 65535, 65535, 65535
  96.     }
  97. };
  98.  
  99. //----------------------------------------------------------------------------
  100. // panel 1 - BUTTONS - begins here
  101. //----------------------------------------------------------------------------
  102. #pragma mark 3D_BUTTONS_PANEL1
  103.  
  104. resource 'DITL' (129, "Buttons panel 1", purgeable) {
  105.     {
  106.  
  107. // Check boxes
  108.     
  109.         /* [1] */    {64, 22, 80, 142},        Control     {enabled,    129            },
  110.         /* [2] */    {84, 22, 100, 142},        Control     {enabled,    130            },
  111.         /* [3] */    {104, 22, 120, 142},    Control     {enabled,    131            },
  112.         /* [4] */    {124, 22, 140, 142},    Control     {enabled,    132            },
  113.         
  114. // Radio buttons
  115.         /* [5] */    {64, 172, 80, 292},        Control     {enabled,    133            },        
  116.         /* [6] */    {84, 172, 100, 292},    Control     {enabled,    134            },        
  117.         /* [7] */    {104, 172, 120, 292},    Control     {enabled,    135            },        
  118.         /* [8] */    {124, 172, 140, 292},    Control     {enabled,    136            },
  119.  
  120. // Tog buttons
  121.                 
  122.         /* [9] */    {64, 320, 80, 440},        Control     {enabled,    137            },        
  123.         /* [10] */    {84, 320, 100, 440},    Control     {enabled,    138            },        
  124.         /* [11] */    {104, 320, 120, 440},    Control     {enabled,    139            },        
  125.         /* [12] */    {124, 320, 140, 440},    Control     {enabled,    140            },        
  126.  
  127. // Push buttons
  128.  
  129.         /* [13] */    {192, 22, 212, 88},        Control     {enabled,    141            },    
  130.         /* [14] */    {180, 101, 220, 159},    Button         {enabled,    "Multi\nLine"    },    
  131.  
  132. // Font popups
  133.         
  134.         /* [15] */    {177, 186, 204, 343},    Control     {enabled,    142            },
  135.         /* [16] */    {182, 349, 198, 383},    StaticText     {disabled,    "Size:"        },
  136.         /* [17] */    {182, 388, 198, 416},    EditText     {enabled,    "12"        },
  137.         /* [18] */    {177, 422, 204, 453},    Control     {enabled,    143            },
  138.         /* [19] */    {208, 288, 228, 347},    Button         {enabled,    "Set"        },
  139.         
  140. // Group boxes
  141.  
  142.         /* [20] */    {48, 14, 64, 154},        Control     {enabled,    144            },
  143.         /* [21] */    {48, 164, 64, 304},        Control     {enabled,    145            },
  144.         /* [22] */    {48, 314, 64, 454},        Control     {enabled,    146            },
  145.         /* [23] */    {156, 14, 172, 172},    Control     {enabled,    147            },
  146.         /* [24] */    {156, 182, 172, 454},    Control     {enabled,    148            }
  147.     }
  148. };
  149.  
  150. // CheckBoxes
  151.  
  152. resource 'CNTL' (129, purgeable) {
  153.     {64, 22, 80, 142},        1,    visible,    1,    0,    
  154.     checkBoxProcUseWFont,    
  155.     0,
  156.     "Check Box 1"
  157. };
  158.  
  159. resource 'CNTL' (130, purgeable) {
  160.     {84, 22, 100, 142},        0,    visible,    1,    0,    
  161.     checkBoxProcUseWFont,    
  162.     0,
  163.     "Check Box 2"
  164. };
  165.  
  166. resource 'CNTL' (131, purgeable) {
  167.     {104, 22, 120, 142},        0,    visible,    1,    0,    
  168.     checkBoxProcUseWFont,    
  169.     0,
  170.     "Check Box 3"
  171. };
  172.  
  173. resource 'CNTL' (132, purgeable) {
  174.     {124, 172, 140, 292},        0,    visible,    1,    0,    
  175.     checkBoxProcUseWFont,    
  176.     0,
  177.     "Check Box 4"
  178. };
  179.  
  180. // Radio Buttons
  181.  
  182. resource 'CNTL' (133, purgeable) {
  183.     {64, 172, 80, 292},        1,    visible,    1,    0,    
  184.     radioButProcUseWFont,    
  185.     0,
  186.     "Radio Button 1"
  187. };
  188.  
  189. resource 'CNTL' (134, purgeable) {
  190.     {84, 172, 100, 292},    0,    visible,    1,    0,    
  191.     radioButProcUseWFont,    
  192.     0,
  193.     "Radio Button 2"
  194. };
  195.  
  196. resource 'CNTL' (135, purgeable) {
  197.     {104, 172, 120, 292},    0,    visible,    1,    0,    
  198.     radioButProcUseWFont,    
  199.     0,
  200.     "Radio Button 3"
  201. };
  202.  
  203. resource 'CNTL' (136, purgeable) {
  204.     {124, 172, 140, 292},    0,    visible,    1,    0,    
  205.     radioButProcUseWFont,    
  206.     0,
  207.     "Radio Button 4"
  208. };
  209.  
  210. // Tog Buttons
  211.  
  212. resource 'CNTL' (137, purgeable) {
  213.     {64, 320, 80, 440},        1,    visible,    1,    0,    
  214.     16*button3D+useWFont+togButton,    
  215.     0,
  216.     "Tog Button 1"
  217. };
  218.  
  219. resource 'CNTL' (138, purgeable) {
  220.     {84, 320, 100, 440},    0,    visible,    1,    0,    
  221.     16*button3D+useWFont+togButton,    
  222.     0,
  223.     "Tog Button 2"
  224. };
  225.  
  226. resource 'CNTL' (139, purgeable) {
  227.     {104, 320, 120, 440},    0,    visible,    1,    0,    
  228.     16*button3D+useWFont+togButton,    
  229.     0,
  230.     "Tog Button 3"
  231. };
  232.  
  233. resource 'CNTL' (140, purgeable) {
  234.     {124, 320, 140, 440},    0,    visible,    1,    0,    
  235.     16*button3D+useWFont+togButton,    
  236.     0,
  237.     "Tog Button 4"
  238. };
  239.  
  240. resource 'CNTL' (141, purgeable) {
  241.     {192, 22, 212, 88},    0,    visible,        1,    0,    
  242.     pushButProc,    
  243.     0,
  244.     "Disabled"
  245. };
  246.  
  247. // Change Font popups
  248.  
  249. resource 'CNTL' (142, purgeable) {
  250.     {177, 186, 204, 343},    
  251.     popupTitleRightJust,    
  252.     visible,    
  253.     45,        
  254.     142,    
  255.     16*popUp+popupUseWFont+popupUseAddResMenu+popupFixedWidth,    
  256.     'FONT',                                            // refCon
  257.     "Font:"
  258. };
  259.  
  260. resource 'CNTL' (143, purgeable) {
  261.     {177, 422, 204, 453},    
  262.     popupTitleRightJust,    
  263.     visible,    
  264.     popupSymbolOnly,    
  265.     143,    
  266.     16*popUp+useWFont,            
  267.     0,    
  268.     "popup Symbol only"
  269. };
  270.  
  271. resource 'MENU' (142) {
  272.     142, textMenuProc,    allEnabled,    enabled,    "empty Font menu",
  273.     {
  274.     }
  275. };
  276.  
  277. resource 'MENU' (143) {
  278.     143, textMenuProc,    allEnabled,    enabled,    "Font sizes",
  279.     {
  280.         /* [1] */    "9",  noIcon, noKey, noMark, plain,
  281.         /* [2] */    "10", noIcon, noKey, noMark, plain,
  282.         /* [3] */    "12", noIcon, noKey, noMark, plain,
  283.         /* [4] */    "14", noIcon, noKey, noMark, plain,
  284.         /* [5] */    "18", noIcon, noKey, noMark, plain
  285.     }
  286. };
  287. // Group Boxes
  288.  
  289. resource 'CNTL' (144, purgeable) {
  290.     {48, 14, 64, 154},        0,    visible,    100,    0,    
  291.     16*groupBox+useWFont,    
  292.     0,
  293.     "Check Boxes"
  294. };
  295.  
  296. resource 'CNTL' (145, purgeable) {
  297.     {48, 164, 64, 304},        0,    visible,    100,    0,    
  298.     16*groupBox+grayLine+useWFont,    
  299.     0,
  300.     "Radio Buttons"
  301. };
  302.  
  303. resource 'CNTL' (146, purgeable) {
  304.     {48, 314, 64, 454},        0,    visible,    100,    0,    
  305.     16*groupBox+ctl3D+useWFont,    
  306.     0,
  307.     "“Tog” Buttons"
  308. };
  309.  
  310. resource 'CNTL' (147, purgeable) {
  311.     {156, 14, 172, 172},    0,    visible,    81,        0,    
  312.     16*groupBox+insetBox+useWFont,    
  313.     0,
  314.     "Push Buttons"
  315. };
  316.  
  317. resource 'CNTL' (148, purgeable) {
  318.     {156, 182, 172, 454},    0,    visible,    81,        0,    
  319.     16*groupBox+ctl3D+insetBox+useWFont,    
  320.     0,
  321.     "Change Font"
  322. };
  323.  
  324. #pragma mark POPUP_PANEL2
  325. //----------------------------------------------------------------------------
  326. // Panel 2 - POPUPS - begins here
  327. //----------------------------------------------------------------------------
  328.  
  329. resource 'DITL' (130, "Popup panel 2", purgeable) {
  330.     {
  331. // standard CDEF 63 style menus
  332.  
  333.         /* [1] */    {52, 20, 75, 320},        Control     {enabled,    1300    },
  334.         /* [2] */    {85, 20, 108, 320},        Control     {enabled,    1301    },
  335.         /* [3] */    {118, 20, 141, 320},    Control     {enabled,    1302    },
  336.         /* [4] */    {151, 10, 174, 320},    Control     {enabled,    1303    },
  337.         /* [5] */    {184, 80, 238, 330},    Control     {enabled,    1304    },
  338.         /* [6] */    {52, 325, 75, 460},        Control     {enabled,    1305    },
  339.         /* [7] */    {184, 340, 238, 460},    Control     {enabled,    1306    },
  340.     }
  341. };
  342.  
  343. resource 'CNTL' (1300, purgeable) {
  344.     {52, 20, 75, 320}, 
  345.     popupTitleRightJust,            
  346.     visible,    
  347.     popupBlackSymbol+120,        
  348.     256,    
  349.     16*popUp+popupFixedWidth+ctl3D,        
  350.     0,    
  351.     "Right:"
  352. };
  353. resource 'CNTL' (1301, purgeable) {
  354.     {85, 20, 108, 320},    
  355.     popupTitleLeftJust,            
  356.     visible,    
  357.     120,        
  358.     257,    
  359.     16*popUp+popupFixedWidth,        
  360.     0,    
  361.     "Left:"
  362. };
  363. resource 'CNTL' (1302, purgeable) {
  364.     {118, 20, 141, 320},    
  365.     popupTitleCenterJust+popupTitleOutline,    
  366.     visible,    
  367.     120,        
  368.     258,    
  369.     16*popUp+popupFixedWidth,        
  370.     0,    
  371.     "Center:"
  372. };
  373. resource 'CNTL' (1303, purgeable) {
  374.     {151, 10, 174, 320},    
  375.     popupTitleRightJust+popupTitleBold,    
  376.     visible,    
  377.     130,        
  378.     259,    
  379.     16*popUp,        
  380.     0,    
  381.     "Not Fixed Width:"
  382. };
  383. resource 'CNTL' (1304, purgeable) {
  384.     {184, 80, 238, 330},    
  385.     popupTitleRightJust+popupTitleItalic,    
  386.     visible,    
  387.     60,        
  388.     260,    
  389.     16*popUp,        
  390.     0,    
  391.     "Icons: "
  392. };
  393. resource 'CNTL' (1305, purgeable) {
  394.     {52, 325, 75, 460},    
  395.     popupTitleRightJust,    
  396.     visible,    
  397.     40,        
  398.     261,    
  399.     16*popUp+useWFont,        
  400.     0,    
  401.     "Popup:"
  402. };
  403. resource 'CNTL' (1306, purgeable) {
  404.     {184, 340, 238, 460},    
  405.     popupTitleRightJust,    
  406.     visible,    
  407.     44,        
  408.     262,    
  409.     16*popUp+useWFont,        
  410.     0,    
  411.     "Colors:"
  412. };
  413.  
  414. resource 'MENU' (256) {
  415.     256, textMenuProc,    allEnabled,    enabled,    "sample menu 1",
  416.     {
  417.         /* [1] */    "Styled Item Text",         noIcon, noKey, noMark, plain,
  418.         /* [2] */    "Red Italic",                 noIcon, noKey, noMark, italic,
  419.         /* [3] */    "Blue Outline",             noIcon, noKey, noMark, outline,
  420.         /* [4] */    "Green Bold",                 noIcon, noKey, noMark, bold,
  421.         /* [5] */    "Item Five is a long item", noIcon, noKey, noMark, plain
  422.     }
  423. };
  424. resource 'MENU' (257) {
  425.     257, textMenuProc,    0x7ffffffe,    enabled,    "sample menu 2",
  426.     {
  427.         /* [1] */    "Disabled Item",             noIcon, noKey, noMark, plain,
  428.         /* [2] */    "Item 2    ",                     noIcon, noKey, noMark, plain
  429.     }
  430. };
  431. resource 'MENU' (258) {
  432.     258, textMenuProc,    allEnabled,    enabled,    "sample menu 3",
  433.     {
  434.         /* [1] */    "Colored Item Text",        noIcon, noKey, noMark, plain,
  435.         /* [2] */    "Item 2    ",                     noIcon, noKey, noMark, plain,
  436.         /* [2] */    "Item 3    ",                     noIcon, noKey, noMark, plain,
  437.         /* [2] */    "Item 4    ",                     noIcon, noKey, noMark, plain
  438.     }
  439. };
  440. resource 'MENU' (259) {
  441.     259, textMenuProc,    allEnabled,    enabled,    "sample menu 4",
  442.     {
  443.         /* [1] */    "PopUp CDEF",                 noIcon, noKey, noMark, plain,
  444.         /* [2] */    "Item 2    ",                     noIcon, noKey, noMark, plain
  445.     }
  446. };
  447. resource 'MENU' (260) {
  448.     260, textMenuProc,    allEnabled,    enabled,    "sample menu 5",
  449.     {
  450.         /* [1] */    "Small cicn",                 44, noKey, noMark, plain,
  451.         /* [2] */    "Large cicn",                 45, noKey, noMark, plain,
  452.         /* [3] */    "Very Large cicn",            46,    noKey, noMark, plain,
  453.         /* [4] */    "B&W Icon",                    5,    noKey, noMark, plain,
  454.         /* [5] */    "B&W Icon (reduced)",        5,    "\0x1D", noMark, plain,
  455.         /* [6] */    "Small Icon (SICN)",        6,    "\0x1E", noMark, plain,
  456.         /* [7] */    "cicn (reduced)",            47,    "\0x1D", noMark, plain,
  457.     }
  458. };
  459. resource 'MENU' (261) {
  460.     261, textMenuProc,    allEnabled,    enabled,    "sample menu 6",
  461.     {
  462.         /* [1] */    "CDEF using",             noIcon, noKey, noMark, plain,
  463.         /* [2] */    "the Window",             noIcon, noKey, noMark, plain,
  464.         /* [2] */    "font",                     noIcon, noKey, noMark, plain
  465.     }
  466. };
  467. resource 'MENU' (262) {
  468.     262, textMenuProc,    allEnabled,    enabled,    "sample menu 7",
  469.     {
  470.         /* [1] */    " ",             101, noKey, noMark, plain,
  471.         /* [2] */    " ",             102, noKey, noMark, plain,
  472.         /* [3] */    " ",             103, noKey, noMark, plain,
  473.         /* [4] */    " ",             104, noKey, noMark, plain,
  474.         /* [5] */    " ",             105, noKey, noMark, plain,
  475.         /* [6] */    " ",             106, noKey, noMark, plain,
  476.         /* [7] */    " ",             107, noKey, noMark, plain,
  477.         /* [8] */    " ",             108, noKey, noMark, plain,
  478.         /* [9] */    " ",             109, noKey, noMark, plain,
  479.     }
  480. };
  481.  
  482. resource 'mctb' (256) {
  483.     {
  484.         /* [1] */        256, 0,
  485.         {
  486.             /* [1] */    0, 0, 0,
  487.             /* [2] */    0, 0, 0,
  488.             /* [3] */    0, 0, 0,
  489.             /* [4] */    37715, 65535, 65535
  490.         },
  491.         /* [2] */        256, 1,                    // item 1 colors
  492.         {
  493.             /* [1] */    0, 0, 0,
  494.             /* [2] */    39321, 0, 0,
  495.             /* [3] */    0, 0, 0,
  496.             /* [4] */    65535, 65535, 65535
  497.         }
  498.         /* [3] */        256, 2,                    // item 2 colors
  499.         {
  500.             /* [1] */    0, 0, 0,
  501.             /* [2] */    65535,0, 0,
  502.             /* [3] */    0, 0, 0,
  503.             /* [4] */    65535, 65535, 65535
  504.         },
  505.         /* [4] */        256, 3,
  506.         {
  507.             /* [1] */    0, 0, 0,
  508.             /* [2] */    0, 0, 65535,
  509.             /* [3] */    0, 0, 0,
  510.             /* [4] */    65535, 65535, 65535
  511.         },
  512.         /* [5] */        256, 4,
  513.         {
  514.             /* [1] */    0, 0, 0,
  515.             /* [2] */    0, 8738, 0,
  516.             /* [3] */    0, 0, 0,
  517.             /* [4] */    65535, 65535, 65535
  518.         }
  519.     }
  520. };
  521.  
  522. resource 'mctb' (258) {
  523.     {
  524.         /* [1] */        258, 0,                    // menu colors
  525.         {
  526.             /* [1] */    0, 0, 0,
  527.             /* [2] */    0, 0, 0,
  528.             /* [3] */    0, 0, 0,
  529.             /* [4] */    61166, 61166, 61166        // bg is gray
  530.         },
  531.         /* [2] */        258, 1,                    // item 1 colors
  532.         {
  533.             /* [1] */    0, 0, 0,
  534.             /* [2] */    13107, 0, 39321,
  535.             /* [3] */    0, 0, 0,
  536.             /* [4] */    65535, 65535, 65535
  537.         }
  538.         /* [3] */        258, 2,                    // item 2 colors
  539.         {
  540.             /* [1] */    0, 0, 0,
  541.             /* [2] */    65535,0, 0,
  542.             /* [3] */    0, 0, 0,
  543.             /* [4] */    65535, 65535, 65535
  544.         },
  545.         /* [4] */        258, 3,
  546.         {
  547.             /* [1] */    0, 0, 0,
  548.             /* [2] */    0, 0, 65535,
  549.             /* [3] */    0, 0, 0,
  550.             /* [4] */    65535, 65535, 65535
  551.         },
  552.         /* [5] */        258, 4,
  553.         {
  554.             /* [1] */    0, 0, 0,
  555.             /* [2] */    65535, 0, 65535,
  556.             /* [3] */    0, 0, 0,
  557.             /* [4] */    65535, 65535, 65535
  558.         }
  559.     }
  560. };
  561. //----------------------------------------------------------------------------
  562. // Panel 3 - SPINNERS - begins here
  563. //----------------------------------------------------------------------------
  564. #pragma mark SPINNERS_PANEL3
  565.  
  566. resource 'DITL' (131, "Spinner panel 3", purgeable) {
  567.     {
  568.         /* [1] */    {75,  50, 93, 160},        Control        {    enabled,    1312    },
  569.         /* [2] */    {103, 50, 128, 164},    Control        {    enabled,    1313    },
  570.         /* [3] */    {138, 149, 156, 160},    Control        {    enabled,    1314    },
  571.         /* [4] */    {166, 50, 191, 174},    Control        {    enabled,    1315    },
  572.         /* [5] */    {75,  230, 93, 340},    Control        {    enabled,    1316    },
  573.         /* [6] */    {103, 230, 128, 344},    Control        {    enabled,    1317    },
  574.         /* [7] */    {138, 329, 163, 344},    Control        {    enabled,    1318    },
  575.         /* [8] */    {173, 230, 191, 351},    Control        {    enabled,    1319    },
  576.         /* [9] */    {140, 103, 155, 143},    EditText    {    enabled,    "0"        },
  577.         /* [10] */    {142, 287, 158, 324},    StaticText    {    disabled,    "0"        },
  578.     }
  579. };
  580.  
  581. resource 'CNTL' (1312, purgeable) {
  582.     {75,  50, 93, 160},    0,
  583.     visible,    999,        -999,    
  584.     16*spinner+ctl3D+useWFont,
  585.     10,                                                // refCon = increment
  586.     "Small 3D:"
  587. };
  588.  
  589. resource 'CNTL' (1313, purgeable) {
  590.     {103, 50, 128, 164},    0,
  591.     visible,    999,        -999,    
  592.     16*spinner+ctl3D+useWFont+bigArrows,
  593.     0,    
  594.     "Large 3D:"
  595. };
  596.  
  597. resource 'CNTL' (1314, purgeable) {
  598.     {138, 149, 156, 160},    0,
  599.     visible,    999,        -999,    
  600.     16*spinner+ctl3D,                                    
  601.     $000D0005,                                    // refCon = DITL item and increment    
  602.     "Linked to edit item 9 with an increment of 5"
  603.     
  604. // remember, DITLBASE = 4, so 4+9 = 13 = 0x000D + 0005 for refCon
  605. };
  606.  
  607. resource 'CNTL' (1315, purgeable) {
  608.     {166, 50, 185, 171},    0,
  609.     visible,    100,        -100,    
  610.     16*spinner+ctl3D+useWFont+bigArrows+horizArrows,
  611.     0,    
  612.     "Horiz 3D:"
  613. };
  614.  
  615. resource 'CNTL' (1316, purgeable) {
  616.     {75,  230, 93, 340},    0,
  617.     visible,    999,        -999,    
  618.     16*spinner+useWFont,
  619.     10,                                                // refCon = increment
  620.     "Small:"
  621. };
  622.  
  623. resource 'CNTL' (1317, purgeable) {
  624.     {103, 230, 128, 344},    0,
  625.     visible,    999,        -999,    
  626.     16*spinner+useWFont+bigArrows,
  627.     0,    
  628.     "Large:"
  629. };
  630.  
  631. // this spinner is going to adjust by 0.10 instead of 1.
  632. // This requires a special action proc for TrackControl
  633. // See trackSpin7 in demoCDEF.c and a bit of special
  634. // initialization (see restorePanel)
  635.  
  636. resource 'CNTL' (1318, purgeable) {
  637.     {138, 329, 163, 344},    0,
  638.     visible,    990,        -990,    
  639.     16*spinner+bigArrows,
  640.     0,    
  641.     "Fractional value"
  642. };
  643.  
  644. resource 'CNTL' (1319, purgeable) {
  645.     {173, 230, 191, 351},    0,
  646.     visible,    100,        -100,    
  647.     16*spinner+useWFont+horizArrows,
  648.     0,    
  649.     "Horiz:"
  650. };
  651.  
  652. //----------------------------------------------------------------------------
  653. // Panel 4 - DATETIME - begins here
  654. //----------------------------------------------------------------------------
  655. #pragma mark DATE_TIME_PANEL4
  656.  
  657. resource 'DITL' (132, "Date & Time panel 4", purgeable) {
  658.     {
  659.         /* [1] */    {47, 90, 65, 263},            Control     {enabled,    1321        },
  660.         /* [2] */    {72, 90, 90, 270},            Control     {enabled,    1322        },
  661.         /* [3] */    {97, 90, 115, 200},            Control     {enabled,    1323        },
  662.         /* [4] */    {122, 90, 140, 261},        Control     {enabled,    1324        },
  663.         /* [5] */    {147, 90, 184, 270},        Control     {enabled,    1325        },
  664.         /* [6] */    {192, 90, 229, 270},        Control     {enabled,    1326        },
  665.     
  666.         /* [7] */    {49, 10, 65, 55},            StaticText     {disabled,    "Variation:"},
  667.         /* [8] */    {49, 60, 65, 80},            StaticText     {disabled,    "0"        },
  668.         /* [9] */    {74, 60, 90, 80},            StaticText     {disabled,    "1"        },
  669.         /* [10] */    {99, 60, 115, 80},            StaticText     {disabled,    "2"        },
  670.         /* [11] */    {125, 60, 141, 80},            StaticText     {disabled,    "8"        },
  671.         /* [12] */    {154, 60, 170, 80},            StaticText     {disabled,    "4+8"    },
  672.         /* [13] */    {194, 60, 210, 80},            StaticText     {disabled,    "4"        },
  673.         /* [14] */    {208, 370, 228, 428},        Button             {    enabled,    "Reset"    },
  674.     }
  675. };
  676.  
  677. // non-zero min forces 3D look
  678. // non-zero max forces 24 hour setting
  679.  
  680. resource 'CNTL' (1321, purgeable) {
  681.     {47, 90, 65, 263},            0,    visible,    only24,        ctl3D,    
  682.     16*dateTime,                        
  683.     0,    
  684.     "Both:"
  685. };
  686. resource 'CNTL' (1322, purgeable) {
  687.     {72, 90, 90, 270},            0,    visible,    0,            ctl3D,    
  688.     16*dateTime+dateOnly,        
  689.     0,                                                // refCon could be a DateTime value
  690.     "Date:"
  691. };
  692. resource 'CNTL' (1323, purgeable) {
  693.     {97, 90, 115, 200},            0,    visible,    only24,        ctl3D,    
  694.     16*dateTime+timeOnly,        
  695.     0,    
  696.     "Time:"
  697. };
  698. resource 'CNTL' (1324, purgeable) {
  699.     {122, 90, 140, 261},        0,    visible,    0,            ctl3D,    
  700.     16*dateTime+useWFont,        
  701.     0,    
  702.     "Both:"
  703. };
  704. resource 'CNTL' (1325, purgeable) {
  705.     {147, 90, 184, 270},        0,    visible,    0,            ctl3D,    
  706.     16*dateTime+useWFont+dtStack,    
  707.     0,    
  708.     "Date & Time:"
  709. };
  710. resource 'CNTL' (1326, purgeable) {
  711.     {192, 90, 229, 270},        0,    visible,    0,                0,            
  712.     16*dateTime+dtStack,        
  713.     0,    
  714.     ""
  715. };
  716.  
  717. //----------------------------------------------------------------------------
  718. // Panel 5 - HSLIDERS - begins here
  719. //----------------------------------------------------------------------------
  720. #pragma mark HSLIDERS_PANEL5
  721.  
  722. resource 'DITL' (133, "HSlider panel 5", purgeable) {
  723.     {
  724.         /* [1] */    {47,  90,  71, 211},    Control     {enabled,    1331    },
  725.         /* [2] */    {87,  90,  111, 211},    Control     {enabled,    1332    },
  726.         /* [3] */    {127, 90, 151, 211},    Control     {enabled,    1333    },
  727.         /* [4] */    {167, 90, 191, 211},    Control        {enabled,    1334    },
  728.         /* [5] */    {207, 90, 231, 211},    Control     {enabled,    1335    },
  729.         
  730.         /* [6] */    {132, 220, 148, 240},    StaticText     {disabled,    "35"    },
  731.  
  732.         /* [7] */    {51, 10, 67, 55},        StaticText     {disabled,    "Variation:"},
  733.         /* [8] */    {51, 60, 67, 80},        StaticText     {disabled,    "0"        },
  734.         /* [9] */    {91, 60, 107, 80},        StaticText     {disabled,    "1"        },
  735.         /* [10] */    {131, 60, 147, 80},        StaticText     {disabled,    "2"        },
  736.         /* [11] */    {171, 60, 187, 80},        StaticText     {disabled,    "4"        },
  737.         /* [12] */    {211, 60, 227, 80},        StaticText     {disabled,    "1+4"    },
  738.     }
  739. };
  740.  
  741. resource 'CNTL' (1331, purgeable) {
  742.     {47,  90,  71, 211},        0,    visible,    100,    0,    
  743.     16*hSlider,                            
  744.     0,    ""
  745. };
  746. resource 'CNTL' (1332, purgeable) {
  747.     {87,  90,  111, 211},        0,    visible,    100,    0,    
  748.     16*hSlider+scaleNoFill,    
  749.     0,    ""
  750. };
  751. resource 'CNTL' (1333, purgeable) {
  752.     {127, 90, 151, 211},        0,    visible,    100,    0,    
  753.     16*hSlider+ctl3D,        
  754.     0,    ""
  755. };
  756. resource 'CNTL' (1334, purgeable) {
  757.     {167, 90, 191, 211},        0,    visible,    100,    0,    
  758.     16*hSlider+scaleGray,        
  759.     0,    ""
  760. };
  761. resource 'CNTL' (1335, purgeable) {
  762.     {207, 90, 231, 211},        0,    visible,    100,    0,    
  763.     16*hSlider+scaleNoFill+scaleGray,    
  764.     0,    ""
  765. };
  766.  
  767. //----------------------------------------------------------------------------
  768. // Panel 6 - VSLIDERS - begins here
  769. //----------------------------------------------------------------------------
  770. #pragma mark VSLIDERS_PANEL6
  771.  
  772. resource 'DITL' (134, "VSlider panel 6", purgeable) {
  773.     {
  774.         /* [1] */    {72,  90,  177,  132},        Control     {enabled,    1341    },
  775.         /* [2] */    {72,  150,  177,  192},        Control     {enabled,    1342    },
  776.         /* [3] */    {72,  210,  177,  252},        Control     {enabled,    1343    },
  777.         /* [4] */    {72,  270,  177,  312},        Control     {enabled,    1344    },
  778.         /* [5] */    {72,  330,  177,  372},        Control     {enabled,    1345    },
  779.         /* [6] */    {72,  390,  213,  432},        Control     {enabled,    1346    },
  780.         
  781.         /* [7] */    {182, 355,  198,  395},     StaticText     {disabled,    "0"        },
  782.     
  783.         /* [8] */    {51, 40, 67, 85},            StaticText     {disabled,    "Variation:"},
  784.         /* [9] */    {51, 116, 67, 130},            StaticText     {disabled,    "0"        },
  785.         /* [10] */    {51, 176, 67, 190},            StaticText     {disabled,    "1"        },
  786.         /* [11] */    {51, 236, 67, 250},            StaticText     {disabled,    "2"        },
  787.         /* [12] */    {51, 296, 67, 310},            StaticText     {disabled,    "4"        },
  788.         /* [13] */    {51, 350, 67, 390},            StaticText     {disabled,    "4+8"    },
  789.         /* [14] */    {51, 416, 67, 430},            StaticText     {disabled,    "0"        }
  790.     }
  791. };
  792.  
  793. resource 'CNTL' (1341, purgeable) {
  794.     {72,  90,  177,  132},    0,    visible,    0,    0,    
  795.     16*vSlider,                            
  796.     0,    ""
  797. };
  798. resource 'CNTL' (1342, purgeable) {
  799.     {72,  150,  177,  192},    0,    visible,    0,    0,    
  800.     16*vSlider+scaleNoFill,    
  801.     0,    ""
  802. };
  803. resource 'CNTL' (1343, purgeable) {
  804.     {72,  210,  177,  252},    0,    visible,    0,    0,    
  805.     16*vSlider+ctl3D,    
  806.     0,    ""
  807. };
  808. resource 'CNTL' (1344, purgeable) {
  809.     {72,  270,  177,  312},    0,    visible,    0,    0,    
  810.     16*vSlider+thumbNoSnap,    
  811.     0,    ""
  812. };
  813. resource 'CNTL' (1345, purgeable) {
  814.     {72,  330,  177,  372},    0,    visible,    0,    0,    
  815.     16*vSlider+thumbNoSnap+scaleBlank,    
  816.     0,    ""
  817. };
  818. resource 'CNTL' (1346, purgeable) {
  819.     {72,  390,  213,  432},    0,    visible,    0,    0,    
  820.     16*vSlider,                            
  821.     10,                                            // refCon = number of sections    
  822.     ""
  823. };
  824. //----------------------------------------------------------------------------
  825. // Panel 7 - PROGBARS - begins here
  826. //----------------------------------------------------------------------------
  827. #pragma mark PROGBARS_PANEL7
  828.  
  829. resource 'DITL' (135, "Progress bar panel 7", purgeable) {
  830.     {
  831.         /* [1] */    {52, 90, 64, 300},            Control     {    enabled,    1352    },
  832.         /* [2] */    {72, 90, 88, 300},            Control     {    enabled,    1353    },
  833.         /* [3] */    {96, 90, 108, 300},            Control     {    enabled,    1354    },
  834.         /* [4] */    {116, 90, 217, 102},        Control     {    enabled,    1355    },
  835.         /* [5] */    {116, 130, 217, 146},        Control     {    enabled,    1356    },
  836.         /* [6] */    {116, 170, 217, 226},        Control     {    enabled,    1357    },
  837.         /* [7] */    {116, 250, 217, 262},        Control     {    enabled,    1358    },
  838.         /* [8] */    {116, 290, 217, 306},        Control     {    enabled,    1359    },
  839.         /* [9] */    {72, 320, 88, 425},            Control     {    enabled,    1360    },
  840.         /* [10] */    {72, 431, 87, 456},            Control     {    enabled,    1361    },
  841.         
  842.         /* [11] */    {51, 10, 67, 55},            StaticText     {    disabled,    "Variation:"},
  843.         /* [12] */    {51, 60, 67, 80},            StaticText     {    disabled,    "0"        },
  844.         /* [13] */    {72, 60, 88, 80},            StaticText     {    disabled,    "2"        },
  845.         /* [14] */    {96, 60, 108, 80},            StaticText     {    disabled,    "4"        },
  846.         /* [15] */    {222, 10, 238, 55},            StaticText     {    disabled,    "Variation:"},
  847.         /* [16] */    {222, 92, 238, 102},        StaticText     {    disabled,    "1"        },
  848.         /* [17] */    {222, 128, 238, 148},        StaticText     {    disabled,    "1+2"    },
  849.         /* [18] */    {222, 188, 238, 208},        StaticText     {    disabled,    "1+2"    },
  850.         /* [19] */    {222, 248, 238, 280},        StaticText     {    disabled,    "1+4"    },
  851.         /* [20] */    {222, 282, 238, 320},        StaticText     {    disabled,    "1+2+4"    },
  852.     }
  853. };
  854.  
  855. resource 'CNTL' (1352, purgeable) {
  856.     {52, 90, 64, 300},        5,    visible,    50,        0,    
  857.     16*progBar,                        
  858.     0,    ""
  859. };
  860. resource 'CNTL' (1353, purgeable) {
  861.     {72, 90, 88, 300},        0,    visible,    40,        0,    
  862.     16*progBar+roundBar,    
  863.     0,    ""
  864. };
  865. resource 'CNTL' (1354, purgeable) {
  866.     {96, 90, 108, 300},        0,    visible,    1,        0,    
  867.     16*progBar+barberPole,
  868.     0,    ""
  869. };
  870. resource 'CNTL' (1355, purgeable) {
  871.     {116, 90, 217, 102},    5,    visible,    100,    0,    
  872.     16*progBar+vertBar,        
  873.     0,    ""
  874. };
  875. resource 'CNTL' (1356, purgeable) {
  876.     {116, 130, 217, 146},    5,    visible,    200,    0,    
  877.     16*progBar+vertBar+roundBar,        
  878.     0,    ""
  879. };
  880. resource 'CNTL' (1357, purgeable) {
  881.     {116, 170, 217, 226},    5,    visible,    150,    0,    
  882.     16*progBar+vertBar+roundBar,        
  883.     0,    ""
  884. };
  885. resource 'CNTL' (1358, purgeable) {
  886.     {116, 250, 217, 262},    1,    visible,    1,        0,    
  887.     16*progBar+vertBar+barberPole,        
  888.     0,    ""
  889. };
  890. resource 'CNTL' (1359, purgeable) {
  891.     {116, 290, 217, 306},    1,    visible,    1,        0,    
  892.     16*progBar+vertBar+roundBar+barberPole,    
  893.     0,    ""
  894. };
  895. resource 'CNTL' (1360, purgeable) {
  896.     {72, 320, 88, 425},    0,    visible,    100,        0,    
  897.     16*progBar,                    
  898.     0,    ""
  899. };
  900. resource 'CNTL' (1361, purgeable) {
  901.     {72, 431, 87, 456},    0,    visible,    100,        0,    
  902.     16*spinner+bigArrows+ctl3D+horizArrows,            
  903.     5,                                            // refCon = increment    
  904.     ""
  905. };
  906.  
  907. resource 'cctb' (1356, purgeable) {
  908.     {
  909.         cFillPatColor, 65535, 0, 0,                // red bar
  910.         cTingeLight, 65535, 65535, 65535        // white background
  911.     }
  912. };
  913.  
  914. resource 'cctb' (1355, purgeable) {
  915.     {
  916.         cFillPatColor, 0, 0, 65535,                // blue bar
  917.         cTingeLight, 52428, 65535, 65535        // lt blue background
  918.     }
  919. };
  920.  
  921. resource 'cctb' (1358, purgeable) {
  922.     {
  923.         cFillPatColor, 65535, 0, 0,                // red bar
  924.         cTingeLight, 65535, 65535, 65535        // white background
  925.     }
  926. };
  927.  
  928. //----------------------------------------------------------------------------
  929. // Panel 8 - POPUPEXT - begins here
  930. //----------------------------------------------------------------------------
  931. #pragma mark POPUPEXT_PANEL8
  932.  
  933. resource 'DITL' (136, "Popup ext. panel 8", purgeable) {
  934.     {
  935.         /* [1] */    {50, 10, 78, 350},        Control     {enabled,    1370    },
  936.         /* [2] */    {85, 10, 108, 185},        Control     {enabled,    1371    },
  937.         /* [3] */    {118, 10, 141, 185},    Control     {enabled,    1372    },
  938.         /* [4] */    {151, 10, 174, 165},    Control     {enabled,    1373    },
  939.         /* [5] */    {192, 10, 232, 177},    Control     {enabled,    1374    },
  940.         /* [6] */    {192, 197, 232, 224},    Control     {enabled,    1375    },
  941.         /* [7] */    {85, 185, 108, 450},    Control     {enabled,    1376    },
  942.         /* [8] */    {118, 185, 141, 450},    Control     {enabled,    1377    },
  943.         /* [9] */    {151, 315, 204, 368},    Control     {enabled,    1378    },
  944.     }
  945. };
  946.  
  947. // extensions to CDEF 63 - special values in controlMax field
  948.  
  949. resource 'CNTL' (1370, purgeable) {
  950.     {50, 10, 78, 350},            
  951.     popupTitleRightJust,    
  952.     visible,    
  953.     popupNoTitle+popupNoMark+130,        
  954.     300,    
  955.     16*popUp,        
  956.     0,    
  957.     "popupNoMark:"
  958. };
  959.         
  960. resource 'CNTL' (1371, purgeable) {
  961.     {85, 10, 108, 185},        
  962.     popupTitleRightJust,    
  963.     visible,    
  964.     popupSymbolOnly+130,    
  965.     301,
  966.     16*popUp,        
  967.     0,    
  968.     "popupSymbolOnly:"
  969. };
  970. resource 'CNTL' (1372, purgeable) {
  971.     {118, 10, 141, 185},        
  972.     popupTitleRightJust,    
  973.     visible,    
  974.     popupNoSymbol+130,        
  975.     302,        
  976.     16*popUp,        
  977.     0,    
  978.     "popupNoSymbol:"
  979. };
  980. resource 'CNTL' (1373, purgeable) {
  981.     {151, 10, 174, 165},        
  982.     popupTitleRightJust,    
  983.     visible,    
  984.     popupCenterText+130,    
  985.     303,
  986.     16*popUp,        
  987.     0,    
  988.     "popupCenterText:"
  989. };
  990. resource 'CNTL' (1374, purgeable) {
  991.     {192, 10, 232, 177},        
  992.     popupTitleRightJust,    
  993.     visible,    
  994.     popupIconOnly+130,        
  995.     304,    
  996.     16*popUp,        
  997.     0,    
  998.     "popupIconOnly:"
  999. };
  1000. resource 'CNTL' (1375, purgeable) {
  1001.     {192, 197, 232, 224},        
  1002.     0,    
  1003.     visible,    
  1004.     popupIconOnly,        
  1005.     305,    
  1006.     16*popUp,        
  1007.     0,    
  1008.     ""
  1009. };
  1010. resource 'CNTL' (1376, purgeable) {
  1011.     {85, 185, 108, 450},        
  1012.     popupTitleRightJust,    
  1013.     visible,    
  1014.     popupBlackSymbol+130,        
  1015.     258,    
  1016.     16*popUp+popupFixedWidth,        
  1017.     0,    
  1018.     "popupBlackSymbol:"
  1019. };
  1020. resource 'CNTL' (1377, purgeable) {
  1021.     {118, 185, 141, 450},        
  1022.     popupTitleRightJust,    
  1023.     visible,    
  1024.     popupInsetFrame+130,        
  1025.     306,        
  1026.     16*popUp+ctl3D+popupFixedWidth,        
  1027.     0,    
  1028.     "popupInsetFrame:"
  1029. };
  1030. resource 'CNTL' (1378, purgeable) {
  1031.     {151, 315, 204, 368},        
  1032.     0,    
  1033.     visible,    
  1034.     popupIconOnly+popupInsetFrame,        
  1035.     307,    
  1036.     16*popUp,        
  1037.     0,    
  1038.     ""
  1039. };
  1040.  
  1041. resource 'MENU' (300) {
  1042.     300, textMenuProc,    allEnabled,    enabled,    "popupNoMark",
  1043.     {
  1044.         /* [1] */    "Folder 2",     1,    "\0x1E", noMark, plain
  1045.         /* [2] */    "Folder 1",     1,    "\0x1E", noMark, plain
  1046.         /* [3] */    "Macintosh HD", 2,    "\0x1E", noMark, plain
  1047.         /* [3] */    "Desktop",         3,    "\0x1E", noMark, plain
  1048.     }
  1049. };
  1050. resource 'MENU' (301) {
  1051.     301, textMenuProc, allEnabled, enabled, "popupSymbolOnly",
  1052.     {
  1053.         /* [1] */    "1", noIcon, noKey, noMark, plain,
  1054.         /* [2] */    "2", noIcon, noKey, noMark, plain,
  1055.         /* [3] */    "3", noIcon, noKey, noMark, plain,
  1056.         /* [4] */    "4", noIcon, noKey, noMark, plain
  1057.     }
  1058. };
  1059. resource 'MENU' (302) {
  1060.     302, textMenuProc, allEnabled, enabled, "popupNoSymbol",
  1061.     {
  1062.         /* [1] */    "1", noIcon, noKey, noMark, plain,
  1063.         /* [2] */    "2", noIcon, noKey, noMark, plain,
  1064.         /* [3] */    "3", noIcon, noKey, noMark, plain,
  1065.         /* [4] */    "4", noIcon, noKey, noMark, plain
  1066.     }
  1067. };
  1068. resource 'MENU' (303) {
  1069.     303, textMenuProc, allEnabled, enabled, "popupCenterText",
  1070.     {
  1071.         /* [1] */    "1", noIcon, noKey, noMark, plain,
  1072.         /* [2] */    "2", noIcon, noKey, noMark, plain,
  1073.         /* [3] */    "3", noIcon, noKey, noMark, plain,
  1074.         /* [4] */    "4", noIcon, noKey, noMark, plain
  1075.     }
  1076. };
  1077.  
  1078. // N.B. - the following 2 menus, have a space for each item string.
  1079.  
  1080. resource 'MENU' (304) {
  1081.     304, textMenuProc,    allEnabled,    enabled,    "popupIconOnly",
  1082.     {
  1083.         /* [1] */    " ", 47,    noKey, noMark, plain,
  1084.         /* [2] */    " ", 7,        noKey, noMark, plain,
  1085.         /* [3] */    " ", 48,    noKey, noMark, plain,
  1086.         /* [4] */    " ", 49,    noKey, noMark, plain,
  1087.         /* [5] */    " ", 50,    noKey, noMark, plain,
  1088.         /* [6] */    " ", 51,    noKey, noMark, plain,
  1089.         /* [7] */    " ", 52,    noKey, noMark, plain
  1090.     }
  1091. };
  1092. resource 'MENU' (305) {
  1093.     305, textMenuProc,    allEnabled,    enabled,    "popupIconOnly",
  1094.     {
  1095.         /* [1] */    " ", 1,    "\0x1E", noMark, plain
  1096.         /* [2] */    " ", 2,    "\0x1E", noMark, plain
  1097.         /* [3] */    " ", 3,    "\0x1E", noMark, plain
  1098.         /* [3] */    " ", 4,    "\0x1E", noMark, plain
  1099.     }
  1100. };
  1101.  
  1102. resource 'MENU' (306) {
  1103.     306, textMenuProc, allEnabled, enabled, "popupSymbolOnly",
  1104.     {
  1105.         /* [1] */    "This popup is", noIcon, noKey, noMark, plain,
  1106.         /* [2] */    "inset for a", noIcon, noKey, noMark, plain,
  1107.         /* [3] */    "3D effect", noIcon, noKey, noMark, plain
  1108.     }
  1109. };
  1110. resource 'MENU' (307) {
  1111.     307, textMenuProc, allEnabled, enabled, "Icons only",
  1112.     {
  1113.         /* [1] */ " ",    46,    noKey, noMark, plain,
  1114.         /* [2] */ " ",    45, noKey, noMark, plain,
  1115.         /* [3] */ " ",     44, noKey, noMark, plain,
  1116.         /* [4] */ " ",    5,    noKey, noMark, plain,
  1117.         /* [5] */ " ",    5,    "\0x1D", noMark, plain,
  1118.         /* [6] */ " ",    6,    "\0x1E", noMark, plain,
  1119.         /* [7] */ " ",    47,    "\0x1D", noMark, plain,
  1120.     }
  1121. };
  1122.  
  1123. resource 'ALRT' (256, "Need DITLExt", purgeable) {
  1124.     {120, 70, 224, 442},
  1125.     256,                                        /* DITL id */
  1126.     {
  1127.         OK, visible, sound1;    /* Stage 4 */
  1128.         OK, visible, sound1;    /* Stage 3 */
  1129.         OK, visible, sound1;    /* Stage 2 */
  1130.         OK, visible, sound1     /* Stage 1 */
  1131.     },
  1132. #if SystemSevenOrLater
  1133.     alertPositionParentWindowScreen
  1134. #endif
  1135. };
  1136.  
  1137. resource 'DITL' (256, "Need DITLExt", purgeable) {
  1138.   {
  1139.     /* [1] */ {76, 292, 96, 360},            Button        { enabled , "OK" },
  1140.     /* [2] */ {16,  64, 48, 328},            StaticText    { disabled ,
  1141.                 "This demo requires System 7 or System 6 with CommToolbox." }
  1142.   }
  1143. };
  1144.